package Test;

public class TTT2 {
    public static void main(String[] args) {
        System.out.println(test(123322));
    }

    public static boolean test(int input) {
        String s = String.valueOf(input);
        if (s.length() <= 1) return true;
        int i = 0, j = s.length() - 1;
        while (i <= j) {
            if (s.charAt(i) != s.charAt(j)) {
                return false;
            }
            i++;
            j--;
        }
        return true;
    }
}
